package com.hzhr.iot.toll.queryModel;


public class OptionsQueryModel {
    private Integer start;
    private Integer count;
    private Boolean show;
    private Boolean show1;
    private Boolean show2;

    public Integer getStart() { return start; }
    public void setStart(Integer start) { this.start = start; }
    public Integer getCount() { return count; }
    public void setCount(Integer count) { this.count = count; }
    public void setPage(Integer page, Integer count) {
        if (page != null && count != null && page > 0 && count > 0) {
            this.start = (page - 1) * count;
            this.count = count;
        }
    }
    public Boolean getShow() { return show; }
    public void setShow(Boolean show) { this.show = show; }
    public Boolean getShow1() { return show1; }
    public void setShow1(Boolean show1) { this.show1 = show1; }
    public Boolean getShow2() { return show2; }
    public void setShow2(Boolean show2) { this.show2 = show2; }
}
